<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>申请周期管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/applyperiod/bizApplyPeriod/">申请周期列表</a></li>
	</ul>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>编号</th>
				<th>分类名称</th>
				<th>细分分类名称</th>
				<th>申请类型</th>
				<th>开始日期</th>
				<th>结束日期</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bizApplyPeriod">
			<tr>
				<td>
					${bizApplyPeriod.id}
				</td>
				<td>
					${bizApplyPeriod.categoryName}
				</td>
				<td>
					${bizApplyPeriod.subCategoryName}
				</td>
				<td>
					${fns:getDictLabel(bizApplyPeriod.applyType, 'apply_type', '')}
				</td>
				<td>
					<fmt:formatDate value="${bizApplyPeriod.startDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${bizApplyPeriod.endDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
    				<a href="${ctx}/applybook/bizApplyBook/avlible/period/applybook?id=${bizApplyPeriod.id}">申请</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>